package com.weibo.favorite.Service.imp;

import java.util.List;

import org.apache.log4j.Logger;

import com.weibo.favorite.Favorite;
import com.weibo.favorite.Service.FavoriteService;
import com.weibo.favorite.dao.FavoriteDao;
import com.weibo.favorite.dao.imp.FavoriteDaoImp;

public class FavoriteServiceImp implements FavoriteService{
	private static Logger logger =  Logger.getLogger(FavoriteServiceImp.class);
	FavoriteDao favoriteDao = new FavoriteDaoImp();
	@Override
	public String addFavorite(Favorite favorite) {
		// TODO Auto-generated method stub
		return favoriteDao.addFavorite(favorite);
	}

	@Override
	public boolean deleteFavorite(String fav_id) {
		// TODO Auto-generated method stub
		return favoriteDao.deleteFavorite(fav_id);
	}

	@Override
	public boolean executeSql(String sql) {
		// TODO Auto-generated method stub
		return favoriteDao.executeSql(sql);
	}

	@Override
	public List getFavoriteList(int currentPage,String user_id) {
		// TODO Auto-generated method stub
		return favoriteDao.getFavoriteList(currentPage, user_id);
	}

	@Override
	public List getFavoriteList_bySql(String sql) {
		// TODO Auto-generated method stub
		return favoriteDao.getFavoriteList_bySql(sql);
	}

}
